<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
<head>
<title>超市账单管理系统-供应商管理</title>
<link type="text/css" rel="stylesheet" th:href="@{/css/style.css}">
</head>
<body>

	<div class="menu">

		<table>
			<tbody>
				<tr>
					<td><form th:action="@{/provider/findAllLike}" method="post" >
							 供应商名称：<input name="proName"
								class="input-text" type="text">&nbsp;&nbsp;&nbsp;&nbsp;
							<input value="查 询" type="submit">
						</form>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="main">

		<div class="optitle clearfix">
			<em>
				<a th:href="@{/provider/toAdd}"  class="input-button">添加供应商</a>
			</em>
			<div class="title">供应商管理&gt;&gt;</div>
		</div>
		<div class="content">
			<table class="list">
				<tbody>
					<tr>
						<td width="70" height="29"><div class="STYLE1" align="center">编号</div>
						</td>
						<td width="80"><div class="STYLE1" align="center">供应商名称</div>
						</td>
						<td width="80"><div class="STYLE1" align="center">联系人</div>
						</td>
						<td width="100"><div class="STYLE1" align="center">联系电话</div>
						</td>
						<td width="100"><div class="STYLE1" align="center">传真</div>
						</td>
						<td width="100"><div class="STYLE1" align="center">操作时间</div>
						</td>
					</tr>
					<tr th:each="provider:${providers}">
						<td height="23"><span class="STYLE1" th:text="${provider.proId}"></span>
						</td>
						<td><a th:href="@{/provider/toUpdate/} + ${provider.proId}"><span class="STYLE1" th:text="${provider.proName}"> </span></a>
						</td>
						<td><span class="STYLE1" th:text="${provider.proContact}"> </span>
						</td>
						<td><span class="STYLE1" th:text="${provider.proPhone}"></span>
						</td>
						<td><span class="STYLE1" th:text="${provider.proFax}"></span>
						</td>
						<td><span class="STYLE1" th:text="${#dates.format(provider.opTime,'yyyy-MM-dd')}"></span>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</body>
</html>